package com.aliyun.heiyu.powermaster.server.rotary.service;

import com.aliyun.heiyu.powermaster.proto.AirTypesReply;
import com.aliyun.heiyu.powermaster.proto.QueryRecommendTempReply;
import com.aliyun.heiyu.powermaster.proto.RecommendTempReply;
import com.aliyun.heiyu.powermaster.server.rotary.object.dto.AirInformationDTO;
import com.aliyun.heiyu.powermaster.server.rotary.object.entity.AiDataEntity;
import com.aliyun.heiyu.powermaster.server.rotary.object.transit.ResTem;

import java.util.List;
import java.util.Map;

/**
 * @Description 空调业务接口
 * @Author shun.zhang
 * @Date 2019/12/16 18:34
 **/
public interface AirService {

    Map<String,String> queryIpc();

    List<AirInformationDTO> getAirInformation(String airId, String pointKey);

    Integer saveAirData(AiDataEntity aiDataEntity);

    boolean setAirValue(Map<String, String> map);

    void saveDataByAir();

    RecommendTempReply getRecommendTempNew();

    RecommendTempReply getRecommendTemps(QueryRecommendTempReply request);

    AirTypesReply getAirTypes();

    boolean saveBattery(ResTem resTem);

    boolean strategy(int num);

    /**
     * 空调推荐温度
     */
    void airRecommendTem();

    /**
     * 校验value在空调的设置温度的范围内（上、下限）
     * @param value 输入的值
     * @param device_id 设备主键
     * @return
     */
}
